<template>
  <div>Child</div>
  <p>{{ modelValue }}</p>
  <button @click="$emit('update:modelValue', modelValue + 1)">+</button>
</template>

<script lang="ts" setup>
defineProps<{
  modelValue: number;
}>();

defineEmits(["update:modelValue"]);
</script>
